/**
 * Created by sunkejun on 2015/10/15.
 */

$(document).ready(function(){
    //checkbox 初始化
    $('.i-checks').iCheck({
        checkboxClass: 'icheckbox_square-green',
        radioClass: 'iradio_square-green',
    });
})

var emailManger  = (function ($) {
    //...
    return {


        openModel:function(){

            $("#email_send_test").modal("show");
            $("#test_email").val('');
        },

        saveMessage: function () {
            console.log(ComdataUtil.collectData('post_content_div'));
            ComdataUtil.ajaxpost("/admin/email",ComdataUtil.collectData('post_content_div'),function(){

            });

        },
        testmail: function () {
            ComdataUtil.ajaxpost("/admin/email/testmail",{email:$("#test_email").val()},function(){
                $("#email_send_test").modal("hide");
            });

        }
    }
})(jQuery);